﻿ 

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Apps.Models.Sys
{

    public partial class SysModuleNavModel
    {
        public  string id { get; set; }
        public  string text { get; set; }
        public  string iconCls { get; set; }
        public  string attributes { get; set; }
        public  string state { get; set; }
      
    }

    public partial class SysModuleModel
    {

     

        [NotNullExpression]
        [Display(Name = "ID")]
        public override string Id { get; set; }
        [Display(Name = "名称"),Required]
        public override string Name { get; set; }

        [Display(Name = "别名")]
        public override string EnglishName { get; set; }
        [Display(Name = "上级ID"),Required]
        public override string ParentId { get; set; }
        [Display(Name = "链接")]
        public override string Url { get; set; }
        [Display(Name = "图标")]
        public override string Iconic { get; set; }
        [IsNumberExpression]//如果填写判断是否是数字
        [Display(Name = "排序号"),Required]
        public override int? Sort { get; set; }
        [Display(Name = "说明")]
        public override string Remark { get; set; }
        [Display(Name = "状态")]
        public override bool Enable { get; set; }
        [Display(Name = "创建人")]
        public override string CreatePerson { get; set; }
        [DateExpression]//如果填写判断是否是日期
        [Display(Name = "创建时间")]
        public override DateTime? CreateTime { get; set; }
        [Display(Name = "是否最后一项")]
        public override bool IsLast { get; set; }
        public override string PATH { get; set; }
        public  string state { get; set; }//treegrid

    }
}

